<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <!--1.修饰符：lazy-->
    <!--输入后回车，或者input框失去焦点，v-model值进行绑定-->
    {{message}}
    <input type="text" placeholder="kkkk" v-model.lazy="message">
    
    <hr>
    <!--2.修饰符number，v-model默认会把输入的number类型转为string类型，number修饰符会使其仍为number类型-->
    {{number}}
    <input type="number" v-model="number">
    number的类型：{{typeof number}}
    <input type="number" v-model.number="number">
    
    <hr>
    <!--3.修饰符trim，去除字符串两边的空格-->
    <!--使用浏览器控制台查看-->
    <input type="text" placeholder="输入name,打开控制台" v-model="name">
    <input type="text" placeholder="输入name,打开控制台" v-model.trim="name">
</div>


<script src="../../js/vue.js"></script>

<script>
    const vue = new Vue({
        el: "#app",
        data: {
            message: "Hello vue,你好！",
            number: 0,
            name: ''
        },
        methods: {
            
        }
    });
</script>
</body>
</html>